package com.liu.text.controller;

import com.liu.text.service.AsyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author QS.Liu
 * @date 2020/5/17/15:54
 */
@RestController
public class HelloController {


    @Autowired
    AsyncService asyncService;


    @RequestMapping("/hello")
    public String hello(){
        asyncService.hello();
        return "OK";
    }
}
